package com.yumeno.education.service.impl;

import com.yumeno.education.dao.StudentDao;
import com.yumeno.education.dao.TeacherDao;
import com.yumeno.education.entity.Student;
import com.yumeno.education.entity.Teacher;
import com.yumeno.education.service.TeacherService;
import org.springframework.stereotype.Service;

import javax.annotation.Resource;

@Service
public class TeacherServiceImpl implements TeacherService {

    @Resource
    private TeacherDao teacherDao;

    @Override
    public Teacher login(Teacher teacher) {
        return teacherDao.selectByUsername(teacher.getUsername());
    }
}
